//
//  HAHorizontalCollectionFlowLayout.h
//  homeAutomation
//
//  Created by wangfan on 2017/12/6.
//  Copyright © 2017年 fiberhome. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol HAHorizontalCollectionFlowLayoutDelegate

- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout cellCenteredAtIndexPath:(NSIndexPath *)indexPath page:(int)page;

@end

@interface HAHorizontalCollectionFlowLayout : UICollectionViewFlowLayout
// 一行中 cell的个数
@property (nonatomic,assign) NSUInteger itemCountPerRow;
// 一页显示多少行
@property (nonatomic,assign) NSUInteger rowCount;

@property (nonatomic,weak)   id<HAHorizontalCollectionFlowLayoutDelegate> delegate;
@end
